<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改接收邮件')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-etlMailRecv-edit" th:object="${etlMailRecv}">
            <input id="id" name="id" th:field="*{id}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">邮件标题：</label>
				<div class="col-sm-8">
					<input id="subject" name="subject" th:field="*{subject}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">邮件内容：</label>
				<div class="col-sm-8">
					<input id="content" name="content" th:field="*{content}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">附件：</label>
				<div class="col-sm-8">
					<input id="attachment" name="attachment" th:field="*{attachment}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">发件人：</label>
				<div class="col-sm-8">
					<input id="from" name="from" th:field="*{from}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">收件人：</label>
				<div class="col-sm-8">
					<input id="to" name="to" th:field="*{to}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">抄送人：</label>
				<div class="col-sm-8">
					<input id="cc" name="cc" th:field="*{cc}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">密送人：</label>
				<div class="col-sm-8">
					<input id="bcc" name="bcc" th:field="*{bcc}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">发送时间：</label>
				<div class="col-sm-8">
					<input id="sentDate" name="sentDate" th:field="*{sentDate}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">0:未读,1:已读：</label>
				<div class="col-sm-8">
					<input id="isRead" name="isRead" th:field="*{isRead}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">0:无需回复,1:需要回复：</label>
				<div class="col-sm-8">
					<input id="isReply" name="isReply" th:field="*{isReply}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "xman/etlMailRecv";
		$("#form-etlMailRecv-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-etlMailRecv-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
